// RUN_PIPELINE_TILL: FRONTEND
// ISSUE: KT-62134

// FILE: Base.java

public class Base<T> {
    public T foo() {
        return null;
    }
}

// FILE: test.kt

class Bar

class Foo<in T> : Base<<!TYPE_VARIANCE_CONFLICT_ERROR!>T<!>>() {

    private val dnn: T & Any = TODO()

    private val flex = foo()

    fun bar(f: Foo<Bar>) {
        val dnn = f.<!INVISIBLE_REFERENCE!>dnn<!>
        val flex = f.<!INVISIBLE_REFERENCE!>flex<!>
    }
}

/* GENERATED_FIR_TAGS: classDeclaration, dnnType, flexibleType, functionDeclaration, in, javaType, localProperty,
nullableType, propertyDeclaration, typeParameter */
